<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.12"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Os1: /home/alejandro/Desarrollo eclipse/os1/src/serialize.cpp File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Os1
   &#160;<span id="projectnumber">1</span>
   </div>
   <div id="projectbrief">OrbSlam2 documentado y modificado</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.12 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,'Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('serialize_8cpp.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#namespaces">Namespaces</a> &#124;
<a href="#define-members">Macros</a> &#124;
<a href="#func-members">Functions</a> &#124;
<a href="#var-members">Variables</a>  </div>
  <div class="headertitle">
<div class="title">serialize.cpp File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;typeinfo&gt;</code><br />
<code>#include &lt;boost/serialization/serialization.hpp&gt;</code><br />
<code>#include &lt;boost/archive/tmpdir.hpp&gt;</code><br />
<code>#include &lt;boost/serialization/base_object.hpp&gt;</code><br />
<code>#include &lt;boost/serialization/vector.hpp&gt;</code><br />
<code>#include &lt;boost/serialization/list.hpp&gt;</code><br />
<code>#include &lt;boost/serialization/set.hpp&gt;</code><br />
<code>#include &lt;boost/serialization/map.hpp&gt;</code><br />
<code>#include &lt;boost/serialization/split_member.hpp&gt;</code><br />
<code>#include &lt;boost/serialization/utility.hpp&gt;</code><br />
<code>#include &lt;boost/serialization/assume_abstract.hpp&gt;</code><br />
<code>#include &lt;boost/archive/binary_oarchive.hpp&gt;</code><br />
<code>#include &lt;boost/archive/binary_iarchive.hpp&gt;</code><br />
<code>#include &quot;<a class="el" href="_map_8h_source.html">Map.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="_key_frame_8h_source.html">KeyFrame.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="_key_frame_database_8h_source.html">KeyFrameDatabase.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="_map_point_8h_source.html">MapPoint.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="_system_8h_source.html">System.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="_tracking_8h_source.html">Tracking.h</a>&quot;</code><br />
</div><div class="textblock"><div class="dynheader">
Include dependency graph for serialize.cpp:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="serialize_8cpp__incl.svg" width="4202" height="947"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
</div><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a>
Namespaces</h2></td></tr>
<tr class="memitem:namespaceboost"><td class="memItemLeft" align="right" valign="top"> &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceboost.html">boost</a></td></tr>
<tr class="memdesc:namespaceboost"><td class="mdescLeft">&#160;</td><td class="mdescRight">OpencCV KeyPoint y Mat Copiado de <a href="https://github.com/MathewDenny/ORB_SLAM2">https://github.com/MathewDenny/ORB_SLAM2</a> <a class="el" href="_map_point_8h.html">MapPoint.h</a>. <br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:namespaceboost_1_1serialization"><td class="memItemLeft" align="right" valign="top"> &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceboost_1_1serialization.html">boost::serialization</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:namespace_o_r_b___s_l_a_m2"><td class="memItemLeft" align="right" valign="top"> &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_o_r_b___s_l_a_m2.html">ORB_SLAM2</a></td></tr>
<tr class="memdesc:namespace_o_r_b___s_l_a_m2"><td class="mdescLeft">&#160;</td><td class="mdescRight">This file is part of ORB-SLAM2. <br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:aa20820f8508907155ae78692268d3fe7"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="serialize_8cpp.html#aa20820f8508907155ae78692268d3fe7">BIFURCACION</a></td></tr>
<tr class="memdesc:aa20820f8508907155ae78692268d3fe7"><td class="mdescLeft">&#160;</td><td class="mdescRight">La bifurcación consiste en distinguir si serializa carga o guarda.  <a href="#aa20820f8508907155ae78692268d3fe7">More...</a><br /></td></tr>
<tr class="separator:aa20820f8508907155ae78692268d3fe7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a16b53bced2ab4579dde2b0736671d96e"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="serialize_8cpp.html#a16b53bced2ab4579dde2b0736671d96e">CARGANDO</a>(ARCHIVO)&#160;&#160;&#160;( typeid(ARCHIVO) == typeid(ArchivoEntrada) )</td></tr>
<tr class="separator:a16b53bced2ab4579dde2b0736671d96e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a985119c54406f96afeb99eaf54d27923"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="serialize_8cpp.html#a985119c54406f96afeb99eaf54d27923">INST_EXP</a>(CLASE)</td></tr>
<tr class="memdesc:a985119c54406f96afeb99eaf54d27923"><td class="mdescLeft">&#160;</td><td class="mdescRight">Instanciación explícita.  <a href="#a985119c54406f96afeb99eaf54d27923">More...</a><br /></td></tr>
<tr class="separator:a985119c54406f96afeb99eaf54d27923"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae010f83f4f8bf5a00058a6d5870298d2"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="serialize_8cpp.html#ae010f83f4f8bf5a00058a6d5870298d2">TIPOS_ARCHIVOS</a>(FORMATO)</td></tr>
<tr class="separator:ae010f83f4f8bf5a00058a6d5870298d2"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a8f2eb183bf258e6d6cf94377d38decfc"><td class="memTemplParams" colspan="2">template&lt;class Archive &gt; </td></tr>
<tr class="memitem:a8f2eb183bf258e6d6cf94377d38decfc"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespaceboost_1_1serialization.html#a8f2eb183bf258e6d6cf94377d38decfc">boost::serialization::load</a> (Archive &amp;ar, ::cv::Mat &amp;m, const unsigned int version)</td></tr>
<tr class="separator:a8f2eb183bf258e6d6cf94377d38decfc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2461caecae62258618693b30f87de9d9"><td class="memTemplParams" colspan="2">template&lt;class Archive &gt; </td></tr>
<tr class="memitem:a2461caecae62258618693b30f87de9d9"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespaceboost_1_1serialization.html#a2461caecae62258618693b30f87de9d9">boost::serialization::save</a> (Archive &amp;ar, const ::cv::Mat &amp;m, const unsigned int version)</td></tr>
<tr class="separator:a2461caecae62258618693b30f87de9d9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a15224c7905c88e5aa5c7910226273447"><td class="memTemplParams" colspan="2">template&lt;class Archive &gt; </td></tr>
<tr class="memitem:a15224c7905c88e5aa5c7910226273447"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespaceboost_1_1serialization.html#a15224c7905c88e5aa5c7910226273447">boost::serialization::serialize</a> (Archive &amp;ar, cv::KeyPoint &amp;kf, const unsigned int version)</td></tr>
<tr class="separator:a15224c7905c88e5aa5c7910226273447"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a>
Variables</h2></td></tr>
<tr class="memitem:a5e7908b022b8741b974b071738a01f52"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_o_r_b___s_l_a_m2_1_1_system.html">ORB_SLAM2::System</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="serialize_8cpp.html#a5e7908b022b8741b974b071738a01f52">Sistema</a></td></tr>
<tr class="memdesc:a5e7908b022b8741b974b071738a01f52"><td class="mdescLeft">&#160;</td><td class="mdescRight">This file is part of ORB-SLAM2.  <a href="#a5e7908b022b8741b974b071738a01f52">More...</a><br /></td></tr>
<tr class="separator:a5e7908b022b8741b974b071738a01f52"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Macro Definition Documentation</h2>
<a id="aa20820f8508907155ae78692268d3fe7"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define BIFURCACION</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>La bifurcación consiste en distinguir si serializa carga o guarda. </p>
<p>Se activa definiendo BIFURCACION, pero requiere c++11 para typeinfo En un método serialize(Archivo...) la macro GUARDANDO(Archivo) devuelve true si se está guardando, false si se está cargando.</p>
<p>Comentar la siguiente línea para desactivar la capacidad de bifurcación </p>

</div>
</div>
<a id="a16b53bced2ab4579dde2b0736671d96e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define CARGANDO</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">ARCHIVO</td><td>)</td>
          <td>&#160;&#160;&#160;( typeid(ARCHIVO) == typeid(ArchivoEntrada) )</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a985119c54406f96afeb99eaf54d27923"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define INST_EXP</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">CLASE</td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<b>Value:</b><div class="fragment"><div class="line"><span class="keyword">template</span> <span class="keywordtype">void</span> CLASE::serialize&lt;ArchivoEntrada&gt;(ArchivoEntrada&amp;,<span class="keyword">const</span> <span class="keywordtype">unsigned</span> int);\</div><div class="line">template <span class="keywordtype">void</span> CLASE::serialize&lt;ArchivoSalida&gt;(ArchivoSalida&amp;,<span class="keyword">const</span> <span class="keywordtype">unsigned</span> int);</div></div><!-- fragment -->
<p>Instanciación explícita. </p>

</div>
</div>
<a id="ae010f83f4f8bf5a00058a6d5870298d2"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define TIPOS_ARCHIVOS</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">FORMATO</td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<b>Value:</b><div class="fragment"><div class="line"><span class="keyword">typedef</span> boost::archive::FORMATO##_iarchive ArchivoEntrada;\</div><div class="line">    typedef boost::archive::FORMATO##_oarchive ArchivoSalida;</div></div><!-- fragment -->
</div>
</div>
<h2 class="groupheader">Variable Documentation</h2>
<a id="a5e7908b022b8741b974b071738a01f52"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_o_r_b___s_l_a_m2_1_1_system.html">ORB_SLAM2::System</a>* Sistema</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This file is part of ORB-SLAM2. </p>
<p>Copyright (C) 2014-2016 Raúl Mur-Artal &lt;raulmur at="" unizar="" dot="" es&gt;=""&gt; (University of Zaragoza) For more information see <a href="https://github.com/raulmur/ORB_SLAM2">https://github.com/raulmur/ORB_SLAM2</a></p>
<p>ORB-SLAM2 is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.</p>
<p>ORB-SLAM2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.</p>
<p>You should have received a copy of the GNU General Public License along with ORB-SLAM2. If not, see <a href="http://www.gnu.org/licenses/">http://www.gnu.org/licenses/</a>. </p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="serialize_8cpp.html">serialize.cpp</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.12 </li>
  </ul>
</div>
</body>
</html>
